blktap: Segments can span multiple clusters with tap:qcow.
authorkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 26 Apr 2007 10:29:41 +0000 (11:29 +0100)
committerkfraser@localhost.localdomain <kfraser@localhost.localdomain>
Thu, 26 Apr 2007 10:29:41 +0000 (11:29 +0100)
commit03023435b5b3687530f2abba12c9ecd4878d4acb
tree67c9f77cc4280b41b40e6b283728c49b9fb20765
parentaf92b4bbdf922bd5f66d4718290b4170854ce7be
blktap: Segments can span multiple clusters with tap:qcow.

In blktap's qcow we need split up read/write requests if the requests
span multiple clusters. However, with our MAX_AIO_REQUESTS define we
assume that there is only ever a single aio request per tapdisk
request and under heavy i/o we can run out of room causing us to
cancel requests.

Dynamically allocate (based on cluster_bits) the various io request
queues the driver maintains.

Signed-off-by: Mark McLoughlin <markmc@redhat.com>
tools/blktap/drivers/block-qcow.c